<template>
    <div :class="[cname,GapLeftTop ? 'gap-left-top' : '']" class="item-cnt clear-fix">
        <div class="up">
            <slot name="up"></slot>
        </div>
        <div class="down">
            <slot name="down"></slot>
        </div>
    </div>
</template>

<script>
    export default {
        name: "UpdownItemComponent",
        props: {
            cname: String,
            GapLeftTop: Boolean
        }
    }
</script>

<style lang="stylus" scoped>
@import '~@/assets/css/mixins.styl'
.item-cnt 
    width 100%
    height auto 
    .up 
        width 100%
        height auto 
        float left
        overflow hidden
    .down 
        width 100%
        height auto 
        float left
        box-sizing border-box
        padding 0 10px
        position relative
        overflow hidden
.gap-left-top 
    padding-left 10px
    padding-top 10px
    box-sizing border-box
</style>